<template>
  <div class="container">
    <ul class="list-group">
      <li class="list-group-item" v-for="(item,index) in todos" :key="index" style="overflow: hidden">
        <div class="form-check" style="float: left">
          <label class="form-check-label">{{item}}</label>
        </div>
      </li>
    </ul>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive, computed } from 'vue'
import store from '@/store'
export default defineComponent({
  setup () {
    return reactive({
      todos: computed(() => store.state.doneList)
    })
  }
})
</script>

<style scoped>

</style>
